package com.xpxrule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xpxrule.dataobject.dao.ConstantItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ConstantItemMapper extends BaseMapper<ConstantItem> {
    @Update("update constant_item set is_deleted = now() where constant_key=#{constantKey} and is_deleted is null")
    void deleteConstantItemByConstantKey(@Param("constantKey") String constantKey);
}
